package com.haredot.dto;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

public class UserLoginDTO {
    /**
     * 用户名
     */
    @NotNull(message = "学号或工号不允许为空")
    private Long username ;
    /**
     * 密码
     */
    @NotEmpty(message = "密码不允许为空")
    private String password ;
    /**
     * 角色
     */
    @NotEmpty(message = "角色不允许为空")
    private String role ;

    public Long getUsername() {
        return username;
    }

    public void setUsername(Long username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }
}
